{{--<img style="width: 80px;height: 80px;" src="{{ $customer->avatar }}">--}}
{{--{{ $customer->name }}--}}
{{--{{ $customer->provincename->name }}--}}
{{--{{ $customer->cityname->name }}--}}
{{--{{ $customer->machine_count}}--}}
{{--{{ $customer->all_points-$customer->use_points }}--}}

{{--<a href="{{ route('mounts.index') }}"  >我的净水器</a>--}}
{{--<a href="{{ route('services.index') }}"  >我的工单</a>--}}
{{--<a href="{{ route('customers.orders') }}"  >我的订单</a>--}}
{{--<a href="{{ route('customers.filters') }}"  >我的滤芯</a>--}}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>雷谛科技</title>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" type="text/css" href="{{ URL::asset('newstyle/css/drink.css') }}" />
</head>
<body>

<header id="header">
    <a href="{{ route('buyrecords.index') }}">
        <img src="{{ URL::asset('newstyle/images/arrow_left.png') }}" alt="" width="8" class="arrow_left">
    </a>
    <h3>积分记录</h3>
</header>
<section id="section10">
    <ul>
              @foreach($pointrecords as $pointrecord)
        <li>
            <span>
                @if($pointrecord->action == 1)
                    转发浏览文章
                    @elseif($pointrecord->action == 2)
                    完善信息
                    @elseif($pointrecord->action == 3)
                    试用完成机器
                    @elseif($pointrecord->action == 4)
                    完成评价
                    @elseif($pointrecord->action == 5)
                    成功邀请{{ $pointrecord->inviteid->name }}试用机器
                    @elseif($pointrecord->action == 6)
                    订购完成机器
                    @elseif($pointrecord->action == 7)
                    成功邀请{{ $pointrecord->inviteid->name }}订购机器
                    @elseif($pointrecord->action == 'supplement')
                  完善信息
                    @elseif($pointrecord->action == 'attempt_finish')
                  试用完成机器
                    @elseif($pointrecord->action == 'rate')
                    完成评价
                    @elseif($pointrecord->action == 'inviter_attempt_finish')
                    成功邀请{{ $pointrecord->inviteid->name }}试用机器
                    @elseif($pointrecord->action == 'inviter_attempt')
                    成功邀请{{ $pointrecord->inviteid->name }}申请试用机器
                    @elseif($pointrecord->action == 'inviter_reg')
                    成功邀请{{ $pointrecord->inviteid->name }}注册
                    @elseif($pointrecord->action == 'pay_finish')
                    订购完成机器
                    @elseif($pointrecord->action == 'inviter_click')
                    转发装机秀
                    @elseif($pointrecord->action == 'inviter_pay_finish')
                    成功邀请{{ $pointrecord->inviteid->name }}订购机器
                    @elseif($pointrecord->action == 'attempt')
                    申请试用
                    @else
                    {{ $pointrecord->action }}
                    @endif
            </span>积分 @if($pointrecord->add == 1) + @else - @endif {{ $pointrecord->count }}<em>{{ substr( $pointrecord->created_at ,0,-9) }}</em>
        </li>
        @endforeach
    </ul>
</section>
</body>
</html>